package money;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/22 10:40
 */
public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        Cinema cinema = new Cinema();
        System.out.println("请选择做哪种车去看电影");
        System.out.println("1--出租车\n2--公交车");
        int a = in.nextInt();
        System.out.println("共产生以下费用：");
        Charge charge = ChargeFactory.getcharge(a);
        charge.charge();
        cinema.charge();
    }
}
